<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<script type="text/javascript">
//自定义验证
$.extend($.fn.validatebox.defaults.rules, {
mobileRex: {
  validator: function(value){
  var rex=/^1[3-8]+\d{9}$/;
  if(rex.test(value))
  {
    // alert('t'+value);
    return true;
  }else
  {
   //alert('false '+value);
     return false;
  }
    
  },
  message: '请输入正确手机号码'
}
});
</script>
<div align="center">
	<form id="admin_customerEdit_editForm" method="post">
	    <input hidden="true" name="id" readonly="readonly" />
		<table class="tableForm">
			<tr>
				<th style="width: 80px;">姓名</th>
				<td><input name="xm" class="easyui-validatebox" data-options="required:true" />
				</td>
			</tr>
			<tr>
				<th style="width: 80px;">手机号码</th>
				<td><input name="sjh" class="easyui-validatebox" data-options="required:true,validType:'mobileRex'" />
				</td>
			</tr>
			<tr>
				<th style="width: 80px;">电子邮箱</th>
				<td><input name="email" class="easyui-validatebox" data-options="required:true,validType:'email'" />
				</td>
			</tr>
			<tr>
				<th style="width: 80px;">所在单位</th>
				<td><input name="ssdz" class="easyui-validatebox" data-options="required:true" />
				</td>
			</tr>
			<tr>
				<th style="width: 80px;">学科专业</th>
				<td><input name="xkzy" class="easyui-validatebox" data-options="required:true" />
				</td>
			</tr>
			<tr>
				<th style="width: 80px;">密码</th>
				<td><input name="password" class="easyui-validatebox" data-options="required:true" value="123456"/>
				</td>
			</tr>
			<tr>
				<th style="width: 80px;">推荐人</th>
				<td><input name="tjr" class="easyui-validatebox" data-options="required:false" />
				</td>
			</tr>
		</table>
	</form>
</div>